package com.twu.biblioteca.models;

/**
 * Created with IntelliJ IDEA.
 * User: mmoise
 * Date: 20/05/2013
 * Time: 16:29
 * To change this template use File | Settings | File Templates.
 */
public class Movie {


    private final String title;
    private final String director;
    private final int year;
    private final int rating;

    public Movie(String title, String director, int year, int rating){
        this.title = title;
        this.director = director;
        this.year = year;
        this.rating = rating;
    }

    public String toString(){
        return title + " - " + Integer.toString(year) + " - " + director + " - "  + (rating<0 ? "N/A" : Integer.toString(rating));
    }


}
